//
//  AllReimburseListViewController.swift
//  HuaYun
//
//  Created by Mac on 2019/3/19.
//  Copyright © 2019 xyxorigation. All rights reserved.
//

import UIKit

class AllReimburseListViewController: ReimbursementListViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        approvalBtn.setTitle("申请报销", for: .normal)
        self.beginRefresh()
        // Do any additional setup after loading the view.
    }
    
    override func path(for name: String) -> String {
        return ALLBXList
    }
    
    @objc override func toApproval() -> Void {
        let vc = RequestBaoXiaoViewController()
        vc.title = "申请报销"
        self.push(destination: vc)
    }
    
    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        let id = self.source[indexPath.row]["id"].string ?? ""
        let bxdetail = BaoXiaoDetailViewController()
        bxdetail.title = "报销详情"
        bxdetail.id = id
        self.push(destination: bxdetail)
    }

}
